using UnityEngine;

public class Effect_RemoveOnFinishAnimation : MonoBehaviour
{
	[Header("- References -")]
	[SerializeField]
	private Animator targetAnimator;

	private void Update()
	{
		//IL_0007: Unknown result type (might be due to invalid IL or missing references)
		//IL_000c: Unknown result type (might be due to invalid IL or missing references)
		AnimatorStateInfo currentAnimatorStateInfo = targetAnimator.GetCurrentAnimatorStateInfo(0);
		if (((AnimatorStateInfo)(ref currentAnimatorStateInfo)).normalizedTime >= 1f)
		{
			Object.Destroy((Object)(object)((Component)this).gameObject);
		}
	}
}
